<?php

$documentRoot = isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : '';

//正式线（域名访问）
/*$visitUrl = 'https://charts.zhaoxinbao.com/';
$httpPath = 'https://XXXXXXXX.zhaoxinbao.com/';
$rootPath = str_replace('/charts', '', $documentRoot);*/

//正式线（IP访问）
/*$visitUrl = 'http://120.24.167.199/charts/';
$httpPath = 'http://120.24.167.199/appendix/charts/';
$rootPath = $documentRoot;*/

//本地调试
$visitUrl = 'http://192.168.1.103/charts/';
$httpPath = 'http://localhost/appendix/charts/';
$rootPath = $documentRoot;


define('_VISIT_URL_', $visitUrl);
define('_HTTP_PATH_', $httpPath);
define('_IMGS_PATH_', $rootPath . '/appendix/charts/');
define('_FILE_PATH_', $rootPath . '/appendix/charts/');
define('_LOGS_PATH_', $rootPath . '/record/charts/');